import { defineStore } from 'pinia'

export const useMainStore = defineStore('main', {
  state: () => ({
    selectedComponent: {
      currentDatabase: '',
      currentTable: ''
    }
  }),
  actions: {
    setSelectedComponent(currentDatabase, currentTable) {
      this.selectedComponent = {
        currentDatabase,
        currentTable
      }
    }
  }
})
